package com.mall.bean;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;


public class Goods {

    private Integer goods_id;

    @NotNull
    private Integer cat_id;

    private String goods_name;

    @NotNull
    @DecimalMin("0")
    private BigDecimal goods_price;

    @NotNull
    @DecimalMin("0")
    private Integer goods_number;

    private String goods_big_logo;

    private String goods_small_logo;

    private Integer cat_one_id;

    private Integer cat_two_id;

    private Integer cat_three_id;

    private Integer status;

    private Integer flag;

    private Date created_time;

    private Date update_time;

    private String goods_introduce;

    private String cat_name;

    public String getCat_name() {
        return cat_name;
    }

    public void setCat_name(String cat_name) {
        this.cat_name = cat_name;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public Integer getCat_id() {
        return cat_id;
    }

    public void setCat_id(Integer cat_id) {
        this.cat_id = cat_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name == null ? null : goods_name.trim();
    }

    public BigDecimal getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(BigDecimal goods_price) {
        this.goods_price = goods_price;
    }

    public Integer getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(Integer goods_number) {
        this.goods_number = goods_number;
    }

    public String getGoods_big_logo() {
        return goods_big_logo;
    }

    public void setGoods_big_logo(String goods_big_logo) {
        this.goods_big_logo = goods_big_logo == null ? null : goods_big_logo.trim();
    }

    public String getGoods_small_logo() {
        return goods_small_logo;
    }

    public void setGoods_small_logo(String goods_small_logo) {
        this.goods_small_logo = goods_small_logo == null ? null : goods_small_logo.trim();
    }

    public Integer getCat_one_id() {
        return cat_one_id;
    }

    public void setCat_one_id(Integer cat_one_id) {
        this.cat_one_id = cat_one_id;
    }

    public Integer getCat_two_id() {
        return cat_two_id;
    }

    public void setCat_two_id(Integer cat_two_id) {
        this.cat_two_id = cat_two_id;
    }

    public Integer getCat_three_id() {
        return cat_three_id;
    }

    public void setCat_three_id(Integer cat_three_id) {
        this.cat_three_id = cat_three_id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCreated_time() {
        return created_time;
    }

    public void setCreated_time(Date created_time) {
        this.created_time = created_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getGoods_introduce() {
        return goods_introduce;
    }

    public void setGoods_introduce(String goods_introduce) {
        this.goods_introduce = goods_introduce == null ? null : goods_introduce.trim();
    }
}